<%@ page import="rwt.server.util.*,rwt.server.core.User" %>
<% User user = (User) request.getAttribute("rwt.editedUser"); %>

<form method="post" action="" class="f1" style="width:300px;margin:auto;">
	<input type="hidden" id="userId" name="userId" value="<%=Integer.toString(user.getId())%>" />
	<div class="title round-v">Edit User</div>
	<table class="round-v">
		<tr>
			<td>User Name</td>
			<td><%=user.getUserName()%></td>
		</tr>
		<tr>
			<td>First Name</td>
			<td><%=CoreUtil.safeString(user.getFirstName())%></td>
		</tr>
		<tr>
			<td>Last Name</td>
			<td><%=CoreUtil.safeString(user.getLastName())%></td>
		</tr>
		<tr>
			<td>Role</td>
			<td><%=JspUtil.getRoleSelectBoxHtml(user.getRole())%></td>
		</tr>
		<tr>
			<td>Password</td>
			<td><input type="button" value="Reset"></td>
		</tr>
	</table>
	<div class="controls round-v">
		<input type="button" value="Cancel" onclick="openManageUsersTab();">
		<input type="button" value="Delete" onclick="deleteUser($('#userId').val());">
		<input type="button" value="Submit" onclick="submitUserEdit(this.form);">
	</div>
</form>
